package com.dycong.common.leetcode.yi;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yilin
 * Date: 2019-09-05
 * Time: 12:05
 */
public class RotateInte {

    public static void main(String[] args) {
        System.out.println(rotate(80135));
    }

    public static int rotate(int s) {
        int result = 0;
        while (s != 0) {
            result = (s % 10) + result * 10;
            s /= 10;
        }
        return result;
    }
}
